package com.zhaopin.file;

import com.zhaopin.thread.CompanyThread;

import java.io.File;

/**
 * @author Administrator
 * @create 2019-05-21 16:04
 * <p>
 * 处理dba导出的数据然后生成 rankingword的最后可以处理的json数据
 */
public class HandleFileDb2ESformat {


    public static void main(String[] args) {

        String filePath = args[0];
        File file = new File(filePath);
        File[] files = file.listFiles();
        for (File file1 : files) {
            String fileName = file1.getAbsolutePath();
            CompanyThread companyThread = new CompanyThread(fileName);
            Thread thread = new Thread(companyThread);
            thread.start();
        }


    }

}
